#######################################################################
#RANGES
#######################################################################

style "ranges"
{
	GtkScale::slider_length					= 21
	GtkScale::slider_width					= 11
	GtkScale::activate_slider					= 1  #makes the slider pressable -- only works with a patched gtk right now
	
	GtkRange::trough_border				= 0

	engine "experience" 
	{
	
###########
# Vertical
###########
	
#		group "range_trough_vertica_focusl"
#		{
#			function						= BOX
#			property "has-focus"			= TRUE
#			detail						= "trough"
#			orientation					= VERTICAL
#			image 10  {	file				= "images/pixel.png"}
#		}
		
		group "range_trough_vertical"
		{
			function						= BOX
			detail						= "trough"
			orientation					= VERTICAL
			image 10  {	file				= "images/slider/range_trough.png"
						border			= { 1,1,1,1 } }
		}

	### Range-Slider

			
		group "range_slider_vertical_normal"
		{
			function						= SLIDER
			state						= NORMAL
			orientation					= VERTICAL
		
			image 10 {	file				= "images/slider/slider_base.png"
						border			= { 4, 4, 4, 4 }
						recolor "#ff0000"	= bg[normal]
						brightness		= 0.03
						interpolation_type	= NEAREST }
						
			image 20 {	file				= "images/slider/slider_light.png"
						border			= { 5, 3, 5, 5 }
						recolor "#ff0000"	= bg[NORMAL]
						brightness		= 0.2
						draw_components	= BORDER
						interpolation_type	= NEAREST
						padding			= { 0, 2, 0, 0 } }
						
			image 30 {	file				= "images/slider/slider_light.png"
						border			= { 3, 5, 5, 5 }
						recolor "#ff0000"	= bg[NORMAL]
						brightness		= -0.15
						draw_components	= BORDER
						interpolation_type	= NEAREST
						padding			= { 2, 0, 0, 0 }
						rotate			= AROUND}
			
			image 40	{	file				= "images/slider/slider_frame.png"
						border			= { 5, 5, 5, 5 }
						recolor "#ff0000"	= bg[NORMAL]
						brightness		= -0.3
						draw_components	= BORDER
						interpolation_type	= NEAREST }
						
			image 80	{	file				= "images/slider/slider_frame.png"
						border			= { 5, 5, 5, 5 }
						recolor "#ff0000"	= bg[NORMAL]
						brightness		= -0.3
						opacity			= 0.4
						draw_components	= BORDER
						interpolation_type	= NEAREST }
		}
		
		group "range_slider_vertical_prelight" = "range_slider_vertical_normal"
		{
			state						= PRELIGHT
			
			image 50	{	file				= "images/slider/slider_focus1.png"
						border			= { 5, 5, 5, 5 }
						recolor "#ff0000"	= "#ffa000"
						saturation		= 1
						draw_components	= BORDER
						interpolation_type	= NEAREST }
						
			image 60 {	file				= "images/slider/slider_focus2.png"
						border			= { 3, 5, 4, 5 }
						recolor "#ff0000"	= "#ffa000"
						brightness		= -0.15
						draw_components	= BORDER
						padding			= { 1, 0, 1, 0 }
						rotate			= AROUND }
			
			image 70 {	file				= "images/slider/slider_focus2.png"
						border			= { 5, 3, 5, 4 }
						recolor "#ff0000"	= "#ffa000"
						brightness		= 0.2
						saturation		= 0.5
						draw_components	= BORDER
						padding			= { 0, 2, 0, 1 } }
		}


		group "range_slider_vertical_active" = "range_slider_vertical_prelight"
		{
			state						= ACTIVE
			image 10 {	brightness		= -0.04 }
			image 20 {	brightness		= -0.035 } 
			image 30 {	brightness		= 0.015 }
			image 50 {	brightness		= -0.015 }
			image 60 {	brightness		= 0.015
						saturation		= 0.5 } 
			image 70 {	brightness		= -0.1
						saturation		= 0.7 } 
			image 80 {	dont_draw		= TRUE }
		}

		group "range_slider_vertical_insensitive" = "range_slider_vertical_normal"
		{
			state						= INSENSITIVE
			image 10 {	brightness		= 1.025 }
			image 20 {	opacity			= 0.15} 
			image 30 {	opacity			= 0.25}
			image 40 {	opacity			= 0.3} 
			image 80 {	opacity			= 0.5 }
		}
	

###########
# Horizontal
###########

		group "range_trough_horizontal" = "range_trough_vertical"
		{
			orientation					= HORIZONTAL
			rotate 						= CW
			mirror						= VERTICAL
		}

		group "range_slider_horizontal_normal" = "range_slider_vertical_normal"
		{
			orientation					= HORIZONTAL
			rotate 						= CW
			mirror						= VERTICAL
		}
		
		group "range_slider_horizontal_prelight" = "range_slider_vertical_prelight"
		{
			orientation					= HORIZONTAL
			rotate 						= CW
			mirror						= VERTICAL
		}
		
		group "range_slider_horizontal_insensitive" = "range_slider_vertical_insensitive"
		{
			orientation					= HORIZONTAL
			rotate 						= CW
			mirror						= VERTICAL
		}
		
		group "range_slider_horizontal_active" = "range_slider_vertical_active"
		{
			orientation					= HORIZONTAL
			rotate 						= CW
			mirror						= VERTICAL
		}
	
	}
}
